<?php

import('Forms');

function index_action() {
    if (isset($_POST['_ACTION'], $_POST['_EXECUTE'])) {
        $_action = $_POST['_ACTION'];
        $_execute = $_POST['_EXECUTE'];

        if (function_exists($_action) && isset($_action()[$_execute])) {
            $_executor = $_action()[$_execute];
            $_executor();
        }
    } else {
        Url::redirect();
    }
}